package com.shangxian.giveithome.code;

public enum  IssueCode implements Code {

    UPLOAD_NOT_NULL(false, 25002, "发布动态不能为空"),
    UPLOAD_ERROR(false, 25001, "发布动态失败");

    private boolean success;

    private Integer code;

    private String message;

    IssueCode(boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
